<?php

namespace app\logic\model\music;

use app\logic\model\LogicModel;
use think\model\concern\SoftDelete;

class MusicFilesLogicModel extends LogicModel
{
    use SoftDelete;
    protected $name='music_files';
    protected $deleteTime = 'delete_time';
    public function getList(\think\Request $request, array $where, string $field='*', $page = 1, $limit=15,$order='id desc')
    {
        $query=$this->where($where);
        $list = $query->field($field)->order($order)->page($page,$limit)->select();
        $count = $query->count();
        return [$list,$count];
    }

}